package com.qc.service;

import java.util.List;

import com.qc.entity.BusinessReceive;

public interface BusinessReceiveService {

	//优惠券领取 新增
    int saveBusinessReceive(BusinessReceive businessReceive);
    
    //当前用户 是否领取了 当前商家优惠券
    List<BusinessReceive> listeceive(long userId,long shopId,long couponId);
    
    //查询用户所领取的优惠券
    List<BusinessReceive> listUserReceive(long userId,long shopId,int state,int pageNo,int pageSize);
    
    //总数
    int getListReceiveCount(long shopId);
    
    //当前商家查看 用户已使用的优惠券
    List<BusinessReceive> listAllReceive(long shopId,int pageNo,int pageSize);
    
    //修改优惠券使用状态
    int updateBusinessReceiveState(BusinessReceive businessReceive);
    
    //判断当前用户是否已领取优惠券
    int getSerchReceive(long shopId,long userId,long couponId);
    
    //查询优惠券编号 是否存在
    BusinessReceive getCouponNumber(long shopId,String couponNumber);
}
